Method and apparatus of content adaptive detailing filtering for digital pictures

ABSTRACT

According to one embodiment, a method is disclosed. The method includes receiving video data performing pre-filtering on the data, performing content analysis is applied to identify an area of the data, applying a two-dimensional (2-D) 2 nd  gradient operation to extract a high frequency component and normalizing the high frequency component related to high frequency information from a previous picture.

FIELD OF THE INVENTION

The present invention relates to computer systems; more particularly, the present invention relates to video processing.

BACKGROUND

Image enhancement is an important factor in the field of video processing. On the end user side of an image/video application, image enhancement techniques are typically applied as part of post-processing filtering to improve picture quality. Conventional media processors improve picture quality by magnifying the high frequency component to increase the detail/sharpness of picture content. Unfortunately, magnifying the high frequency component blindly will lead to undesirable picture quality due to the magnifying of the noise detail of picture content.

BRIEF DESCRIPTION OF THE DRAWINGS

The invention is illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which:

FIG. 1 is a block diagram of one embodiment of a computer system;

FIG. 2 is a flow diagram illustrating one embodiment for performing detail filtering;

FIG. 3 is a flow diagram illustrating a further embodiment for performing detail filtering;

FIG. 4 illustrates one embodiment of an equation and location of pixels for a high frequency component extraction process for a central target pixel; and

FIG. 5 illustrates one embodiment of a graph mapping edge detection versus filtering weighting over conventional edge detection measures.

DETAILED DESCRIPTION

A content adaptive detail filtering mechanism is disclosed. In one embodiment, the mechanism includes components that are applied to a post-processing system that in the areas of video, image, display and media processors. In one embodiment, the components include processes to enhance image/video visual quality by increasing picture detail/sharpness through content adaptive filtering; provide content analysis by utilizing edge detection and noise detection to adapt the use of detail filtering; provide better/accurate content analysis by utilizing the pre-process filtering to improve edge detection and noise detection; provide detail filtering by a proposed two-dimensional (2-D) 2^(nd) derivative formula to extract high frequency component; provide detail filtering by normalizing the filtering amount by a maximum of a high frequency component detected from a previous picture; provide detail filtering by modifying a filtering amount by a noise detection or a portion of the maximum of the high frequency component detected from the previous picture; and provide detail filtering by allowing end users to specify a filtering gain factor to modify a filtering amount to achieve a user preference.

In the following detailed description of the present invention numerous specific details are set forth in order to provide a thorough understanding of the present invention. However, it will be apparent to one skilled in the art that the present invention may be practiced without these specific details. In other instances, well-known structures and devices are shown in block diagram form, rather than in detail, in order to avoid obscuring the present invention.

Reference in the specification to “one embodiment” or “an embodiment” means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the invention. The appearances of the phrase “in one embodiment” in various places in the specification are not necessarily all referring to the same embodiment.

Some portions of the detailed descriptions that follow are presented in terms of algorithms and symbolic representations of operations on data bits within a computer memory. These algorithmic descriptions and representations are the means used by those skilled in the data processing arts to most effectively convey the substance of their work to others skilled in the art. An algorithm is here, and generally, conceived to be a self-consistent sequence of steps leading to a desired result. The steps are those requiring physical manipulations of physical quantities. Usually, though not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated. It has proven convenient at times, principally for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, or the like.

It should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless specifically stated otherwise as apparent from the following discussion, it is appreciated that throughout the description, discussions utilizing terms such as “processing” or “computing” or “calculating” or “determining” or “displaying” or the like, refer to the action and processes of a computer system, or similar electronic computing device, that manipulates and transforms data represented as physical (electronic) quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system memories or registers or other such information storage, transmission or display devices.

The present invention also relates to an apparatus for performing the operations herein. This apparatus may be specially constructed for the required purposes, or it may comprise a general-purpose computer selectively activated or reconfigured by a computer program stored in the computer. Such a computer program may be stored in a computer readable storage medium, such as, but is not limited to, any type of disk including floppy disks, optical disks, CD-ROMs, and magnetic-optical disks, read-only memories (ROMs), random access memories (RAMs), EPROMs, EEPROMs, magnetic or optical cards, or any type of media suitable for storing electronic instructions, and each coupled to a computer system bus.

The algorithms and displays presented herein are not inherently related to any particular computer or other apparatus. Various general-purpose systems may be used with programs in accordance with the teachings herein, or it may prove convenient to construct more specialized apparatus to perform the required method steps. The required structure for a variety of these systems will appear from the description below. In addition, the present invention is not described with reference to any particular programming language. It will be appreciated that a variety of programming languages may be used to implement the teachings of the invention as described herein.

The instructions of the programming language(s) may be executed by one or more processing devices (e.g., processors, controllers, control processing units (CPUs),

FIG. 1 is a block diagram of one embodiment of a computer system 100. Computer system 100 includes a central processing unit (CPU) 102 coupled to interconnect 105. In one embodiment, CPU 102 is a processor in the Pentium® family of processors Pentium® IV processors available from Intel Corporation of Santa Clara, Calif. Alternatively, other CPUs may be used. For instance, CPU 102 may be implemented multiple processors, or multiple processor cores.

In a further embodiment, a chipset 107 is also coupled to interconnect 105. Chipset 107 may include a memory control component (MC) 110. MC 110 may include a memory controller 112 that is coupled to a main system memory 115. Main system memory 115 stores data and sequences of instructions that are executed by CPU 102 or any other device included in system 100.

MC 110 may be coupled to an input/output control component (IC) 140 via a hub interface. IC 140 provides an interface to input/output (I/O) devices within computer system 100. IC 140 may support standard I/O operations on I/O interconnects such as peripheral component interconnect (PCI), accelerated graphics port (AGP), universal serial interconnect (USB), low pin count (LPC) interconnect, or any other kind of I/O interconnect (not shown). In one embodiment, ICH 140 is coupled to a wireless transceiver 160.

According to one embodiment, IC 140 includes an instruction set to perform a content adaptive detail filtering of video data. However in other embodiments, IC 140 may include hardware modules to perform the process. In further embodiments, CPU 102 may be implemented to perform the process.

FIG. 2 is a flow diagram illustrating one embodiment for performing detail filtering. At processing block 210, a video input is received. At processing block 220, pre-filtering is performed to smooth a picture. At processing block 230, content analysis is applied to identify an area of interest such as edge region. At processing block 240, a 2-D 2^(nd) gradient operation is applied to extract a high frequency component.

At processing block 250, the high frequency component is normalized related to the same high frequency information from a previous picture. At processing block 255, the adjustment amount is refined by a result of edge detection. At processing block 260, the processed video data is transmitted from ICH 140. The individual processes 220-255 are described below in greater detail.

According to a further embodiment, a parameter setting is provided for users to select a refinement amount to a user's preference. FIG. 3 is a flow diagram illustrating a further embodiment for performing detail filtering incorporating user preferences. At processing block 320, a multiplier is applied to the refined value to provide an adjustment based upon a gain factor defined by a user. At processing block 325, clipping is performed. In one embodiment, the clipping is based upon the local maximum and local minimum of 3×3 neighborhood pixels processed during detail filtering. At processing block 330, the adjusted value is added to the video input. At processing block 340, a second clipping operation is performed prior to forwarding to the video output.

Pre-Filtering

The use of a low pass pre-processor to remove noise improves the accuracy of picture analysis. According to one embodiment, a 2-D pre-edge filter is implemented with a weighting w. In a further embodiment, the 2-D filter may be decomposed into two 1-D filters to reduce the number of operations. This can be represented as:

$\begin{matrix} \begin{matrix} {{{Pre\_ edge}{\_ filter}{\_ weighting}\mspace{14mu} w} = \begin{bmatrix} 1 & 2 & 1 \\ 2 & 4 & 2 \\ 1 & 2 & 1 \end{bmatrix}} \\ {= {\begin{bmatrix} 1 \\ 2 \\ 1 \end{bmatrix}*\left\lbrack {1\mspace{14mu} 2\mspace{14mu} 1} \right\rbrack}} \end{matrix} & \lbrack 1\rbrack \end{matrix}$

Considering a target pixel x with 3×3 neighborhood pixels, NH9(x), the output of the pre-edge-filter is represented by:

$\begin{matrix} {{{pre\_ edge}{\_ filter}{\_ output}} = {\left( \frac{1}{\sum\limits_{x \in {{NH}\; 9{(x)}}}{w(x)}} \right) \cdot \left( {{\sum\limits_{x \in {{NH}\; 9{(x)}}}{{w(x)} \cdot x}} + {{1/2} \cdot {\sum\limits_{x \in {{NH}\; 9{(x)}}}{w(x)}}}} \right)}} & \lbrack 2\rbrack \end{matrix}$

In Equation 2 above, the Σw(x)=16 for the summation of the pre_edge_filter_weighting in the Equation 1. The last term, ½·Σw(x), is used for the rounding purpose. The above formula is included in this embodiment due to the simply complexity. However in other embodiments, other pre-processor techniques may be applied.

Content Analysis—Edge Protection

According to one embodiment, edge detection is used as the content analysis process to identify a pixel of interest to be applied for detail filtering. In such an embodiment, a Sobel edge operator, shown below, is applied as the edge detection process in four directions.

$\begin{matrix} {{{E\_ h} = \begin{bmatrix} {- 1} & {- 2} & {- 1} \\ 0 & 0 & 0 \\ 1 & 2 & 1 \end{bmatrix}}{{E\_ v} = \begin{bmatrix} {- 1} & 0 & 1 \\ {- 2} & 0 & 2 \\ {- 1} & 0 & 1 \end{bmatrix}}{{{E\_ P}\; 45} = \begin{bmatrix} {- 2} & {- 1} & 0 \\ {- 1} & 0 & 1 \\ 0 & 1 & 2 \end{bmatrix}}{{{E\_ N}\; 45} = \begin{bmatrix} 0 & {- 1} & {- 2} \\ 1 & 0 & {- 1} \\ 2 & 1 & 0 \end{bmatrix}}} & \lbrack 3\rbrack \end{matrix}$

The edge metric (EM) for the target pixel x is formulated as the convolution of the weighting in the Equation 3 with its 3×3 neighborhood NH9(x) as

EM(x)=|NH9(x)*E _(—) h|+|NH9(x)*E _(—) v|=|NH9(x)*E _(—) P45|+|NH9(x)*E _(—) N45|  [4]

According to one embodiment, the use of two directions, (e.g., E_v, and E_h) may be sufficient for most applications. The detection at 45 degrees further improves the edge detection with more computational complexity.

High Frequency Component Extraction

In one embodiment, the 2-D formula shown above in Equation 5 is used to extract the high frequency component. FIG. 4 illustrates the high frequency component. As shown in FIG. 4, the high frequency component is denoted as the sigma for the central pixel Xc

$\begin{matrix} {{2{nd\_ gradient}} = \begin{bmatrix} {- 1} & 0 & {- 1} & 0 & {- 1} \\ 0 & 0 & 0 & 0 & 0 \\ {- 1} & 0 & 8 & 0 & {- 1} \\ 0 & 0 & 0 & 0 & 0 \\ {- 1} & 0 & {- 1} & 0 & {- 1} \end{bmatrix}} & \lbrack 5\rbrack \end{matrix}$

Refinement

The refinement process includes two modification processes: normalization & edge adaptive. In one embodiment, the Sigma(Xc) is normalized by the maximum of the sigma value of the previous picture, sigma_max_previous, such that:

Temp_sigma(Xc)=C*(sigma(Xc)/sigma_max_previous−delta)  [7]

In one embodiment, the parameter C, which may be specified by users, is a weighting coming from the edge detection. In such an embodiment, pixels are classified as being a strong edge pixel, weak edge pixel and non-edge pixel. Subsequently, the C value is assigned according to the edgeness property of the pixel. FIG. 5 illustrates one embodiment of a graph mapping edge detection versus filtering weighting over conventional edge detection measures. As shown in FIG. 5, the low edge pixels are not modified by the high frequency measure.

The delta in Equation 7 is a threshold to the high frequency component extraction above in which the modification is added to reconstruction. In one embodiment, this process is set by a noise detection level. However, such a process is not described herein so as not to provide confusion as to the scope of this invention. Thus, in this embodiment, 10% of sigma_max_previous is used as the threshold value.

User Preferences

As discussed above, may be provided by allowing end users to specify a filtering gain factor to modify a filtering amount to achieve a user preference. In such an embodiment, the amount of adjustment results in a final adjustment that is represented in Equation 8 as:

Final_sigma(Xc)=K*Temp_sigma(Xc)  [8]

In one embodiment, the parameter K is a constant selected by a user. Further, represented in Equation 9 as:

Output(Xc)=clipping(Xc+Final_sigma(Xc)  [9]

-   -   Where clipping(x)=255 if x>255, clipping(x)=0 if x<0, otherwise,         clipping(x)=x.

The above-described mechanism achieves improved picture quality by utilizing the local spatial content information with the edge detection to adapt high frequency component adjustment to provide graceful enhancement of picture detail. Further, the pre-filtering process extracts more reliable high frequency components and more accurate content analysis. In addition, an effective high frequency component extraction clipping is applied to avoid underflow or overflow in producing the output process implements a two-Dimensional 2^(nd) derivative formula to filter out the high frequency component to illustrate the detail of picture. Moreover, users are permitted to configure for various applications by allowing the user to specify a gain factor to achieve a user desirable viewing experience.

Whereas many alterations and modifications of the present invention will no doubt become apparent to a person of ordinary skill in the art after having read the foregoing description, it is to be understood that any particular embodiment shown and described by way of illustration is in no way intended to be considered limiting. Therefore, references to details of various embodiments are not intended to limit the scope of the claims, which in themselves recite only those features regarded as essential to the invention. 

1. A method comprising: receiving video data performing pre-filtering on the data; performing content analysis is applied to identify an area of the data; applying a two-dimensional (2-D) 2^(nd) gradient operation to extract a high frequency component; and normalizing the high frequency component related to high frequency information from a previous picture.
 2. The method of claim 1 further comprising receiving one or more user defined parameters to provide detail filtering to achieve a user preference.
 3. The method of claim 1 wherein the user defined parameters include a filtering gain factor.
 4. The method of claim 1 wherein performing the pre-filtering comprises using a 2-D filter to remove noise from the data.
 5. The method of claim 4 wherein the 2-D filter is decomposed into two 1-D filters to reduce a number of operations.
 6. The method of claim 1 wherein performing content analysis comprises using an edge detection operation to identify a pixel of interest to be applied for detail filtering.
 7. The method of claim 6 wherein the edge detection operation is a Sobel edge operation.
 8. The method of claim 1 wherein normalizing the high frequency component comprises using an edge adaptive modification process.
 9. The method of claim 8 wherein the edge adaptive modification process classifies pixel data as strong edge pixels, weak edge pixels and non-edge pixels.
 10. A processor comprising: a component to receive video data a component to perform pre-filtering on the data; a component to perform content analysis is applied to identify an area of the data; a component to apply a two-dimensional (2-D) 2^(nd) gradient operation to extract a high frequency component; and a component to normalize the high frequency component related to high frequency information from a previous picture.
 11. The processor of claim 10 further comprising a component to receive one or more user defined parameters to provide detail filtering to achieve a user preference.
 12. The processor of claim 11 wherein the user defined parameters include a filtering gain factor.
 13. The processor of claim 10 wherein the component to perform pre-filtering comprises a 2-D filter to remove noise from the data.
 14. The processor of claim 13 wherein the 2-D filter is decomposed into two 1-D filters to reduce a number of operations.
 15. The processor of claim 10 wherein the component to perform content analysis comprises an edge detection operation to identify a pixel of interest to be applied for detail filtering.
 16. The processor of claim 10 wherein the component to normalize comprises an edge adaptive modification process to classify pixel data as strong edge pixels, weak edge pixels and non-edge pixels.
 17. An article of manufacture including one or more computer readable media that embody a program of instructions, wherein the program of instructions, when executed by a processing unit, causes the processing unit to perform the process of: receiving video data performing pre-filtering on the data; performing content analysis is applied to identify an area of the data; applying a two-dimensional (2-D) 2^(nd) gradient operation to extract a high frequency component; and normalizing the high frequency component related to high frequency information from a previous picture.
 18. The article of manufacture of claim 17 wherein when executed by a processing unit, further causes the processing unit to perform the process of receiving one or more user defined parameters to provide detail filtering to achieve a user preference.
 19. The method of claim 18 wherein the user defined parameters includes a filtering gain factor.
 20. A system comprising: a central processing unit; a chipset having: a component to receive video data a component to perform pre-filtering on the data; a component to perform content analysis is applied to identify an area of the data; a component to apply a two-dimensional (2-D) 2^(nd) gradient operation to extract a high frequency component; and a component to normalize the high frequency component related to high frequency information from a previous picture; and a wireless transceiver coupled to the chipset.
 21. The system of claim 20 further comprising a component to receive one or more user defined parameters to provide detail filtering to achieve a user preference
 22. The system of claim 21 wherein the component to normalize comprises an edge adaptive modification process to classify pixel data as strong edge pixels, weak edge pixels and non-edge pixels. 